package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbFleetOrderValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.commonData.vo.BaseFleetCustomer;
import java.lang.Double;
import com.cloudlead.common.lang.annotation.BelongsTos;
import org.joda.time.DateTime;
import javax.validation.constraints.NotNull;
import com.cloudlead.commonData.vo.TbCustomerOrder;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.commonData.vo.BaseVoyage;
import java.lang.String;
import com.cloudlead.commonData.vo.BaseCompany;
import com.cloudlead.commonData.vo.BaseDock;

/**
 * TbFleetOrder is a Codegen vo type
 */
@Label("车队订单表")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbFleetOrder")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseVoya", rootField="baseVoyage")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="customerCo", rootField="customerCode")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="dock", rootField="dockId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="fleetCompany", rootField="fleetCompanyId")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="tbCustomerOrder", rootField="tbCustomerOrderId")
})
public class TbFleetOrder extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13968437196749L;    
    @Label("航次")
    private BaseVoyage baseVoya;

    @Label("运单号")
    @Size(max=255)
    private String bussinessCode;

    @Label("cargoName")
    @Size(max=500)
    private String cargoName;

    @Label("创建时间")
    private DateTime createTime;

    @Label("车队客户")
    private BaseFleetCustomer customerCo;

    @Label("目的港")
    @Size(max=255)
    private String delName;

    @Label("做箱日期")
    private DateTime doBoxDate;

    @Label("dockId")
    private BaseDock dock;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @Label("所属车队(公司)")
    private BaseCompany fleetCompany;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("isStart")
    @Size(max=8)
    private String isStart;

    @Label("operatingStaff")
    @Size(max=45)
    private String operatingStaff;

    @Label("订单状态")
    @Size(max=100)
    private String orderState;

    @Label("订单类型")
    @Size(max=10)
    private String orderType;

    @Label("packagingAddress")
    @Size(max=500)
    private String packagingAddress;

    @Label("起始港")
    @Size(max=255)
    private String polName;

    @Label("订单价格")
    private Double price;

    @Label("箱量")
    @Size(max=50)
    private String quantity;

    @Label("removeAddress")
    @Size(max=500)
    private String removeAddress;

    @Label("storeArea")
    @Size(max=500)
    private String storeArea;

    @Label("tbCustomerOrderId")
    private TbCustomerOrder tbCustomerOrder;

    @Label("tbFleetOrdercol")
    @Size(max=45)
    private String tbFleetOrdercol;

    @Label("船名航次")
    @Size(max=100)
    private String vesselVoyage;

    public BaseVoyage getBaseVoya() {
        return baseVoya;
    }

    public void setBaseVoya(BaseVoyage baseVoya) {
        this.baseVoya = baseVoya;
    }

    public String getBussinessCode() {
        return bussinessCode;
    }

    public void setBussinessCode(String bussinessCode) {
        this.bussinessCode = bussinessCode;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName;
    }

    public DateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(DateTime createTime) {
        this.createTime = createTime;
    }

    public BaseFleetCustomer getCustomerCo() {
        return customerCo;
    }

    public void setCustomerCo(BaseFleetCustomer customerCo) {
        this.customerCo = customerCo;
    }

    public String getDelName() {
        return delName;
    }

    public void setDelName(String delName) {
        this.delName = delName;
    }

    public DateTime getDoBoxDate() {
        return doBoxDate;
    }

    public void setDoBoxDate(DateTime doBoxDate) {
        this.doBoxDate = doBoxDate;
    }

    public BaseDock getDock() {
        return dock;
    }

    public void setDock(BaseDock dock) {
        this.dock = dock;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public BaseCompany getFleetCompany() {
        return fleetCompany;
    }

    public void setFleetCompany(BaseCompany fleetCompany) {
        this.fleetCompany = fleetCompany;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsStart() {
        return isStart;
    }

    public void setIsStart(String isStart) {
        this.isStart = isStart;
    }

    public String getOperatingStaff() {
        return operatingStaff;
    }

    public void setOperatingStaff(String operatingStaff) {
        this.operatingStaff = operatingStaff;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getPackagingAddress() {
        return packagingAddress;
    }

    public void setPackagingAddress(String packagingAddress) {
        this.packagingAddress = packagingAddress;
    }

    public String getPolName() {
        return polName;
    }

    public void setPolName(String polName) {
        this.polName = polName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getRemoveAddress() {
        return removeAddress;
    }

    public void setRemoveAddress(String removeAddress) {
        this.removeAddress = removeAddress;
    }

    public String getStoreArea() {
        return storeArea;
    }

    public void setStoreArea(String storeArea) {
        this.storeArea = storeArea;
    }

    public TbCustomerOrder getTbCustomerOrder() {
        return tbCustomerOrder;
    }

    public void setTbCustomerOrder(TbCustomerOrder tbCustomerOrder) {
        this.tbCustomerOrder = tbCustomerOrder;
    }

    public String getTbFleetOrdercol() {
        return tbFleetOrdercol;
    }

    public void setTbFleetOrdercol(String tbFleetOrdercol) {
        this.tbFleetOrdercol = tbFleetOrdercol;
    }

    public String getVesselVoyage() {
        return vesselVoyage;
    }

    public void setVesselVoyage(String vesselVoyage) {
        this.vesselVoyage = vesselVoyage;
    }

    public String toString() {
         return String.format("TbFleetOrder { baseVoya : %s,bussinessCode : %s,cargoName : %s,createTime : %s,customerCo : %s,delName : %s,doBoxDate : %s,dock : %s,flag : %s,fleetCompany : %s,id : %s,isStart : %s,operatingStaff : %s,orderState : %s,orderType : %s,packagingAddress : %s,polName : %s,price : %s,quantity : %s,removeAddress : %s,storeArea : %s,tbCustomerOrder : %s,tbFleetOrdercol : %s,vesselVoyage : %s }",baseVoya,bussinessCode,cargoName,createTime,customerCo,delName,doBoxDate,dock,flag,fleetCompany,id,isStart,operatingStaff,orderState,orderType,packagingAddress,polName,price,quantity,removeAddress,storeArea,tbCustomerOrder,tbFleetOrdercol,vesselVoyage);
    }

}

